<template>
	<view class="holion_box">
		<view class="logo">
			<u--image src="../../static/logo.png" width="120" height="120" shape="circle"></u--image>
		</view>
		<view class="more">
			<text>展业之星APP下载</text>
		</view>
		<view class="download">
			<image src="@/static/icons/android.png" width="80" mode=""></image>
		</view>
		<view class="download-btn" @click="app_download">
			<text>Android 下载</text>
		</view>
	</view>
</template>

<script>
	var util = require('@/util/request.js');
	export default {
		data() {
			return {
				qrcode_url: ''
			}
		},
		onLoad() {
			this.qrcode_url = util.API_URL + '/apk/zyzx.apk'
		},
		methods: {
			app_download() {
				window.open(this.qrcode_url)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.holion_box {
		align-items: center;
		margin: auto;
		padding-top: 30%;
		box-sizing: border-box;
		background-image: url('/static/APP-bj.jpg');
		background-position: center center;
		background-repeat: no-repeat;
		background-attachment: fixed;
		background-size: cover;
		min-height: 100vh;

		.logo {
			display: flex;
			align-items: center;
			text-align: center;
			justify-content: center;
		}

		.more {
			padding-top: 50rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;

			text {
				font-size: 44rpx;
				font-weight: bold;
			}
		}
		
		.download {
			margin-top: 100rpx;
			display: flex;
			justify-content: center;
			
			image {
				width: 150rpx;
				height: 150rpx;
			}
		}
		
		.download-btn {
			margin: 30rpx 60rpx;
			display: flex;
			justify-content: center;
			padding: 20rpx 30rpx;
			background-color: #19be6b;
			color: #fff;
			font-weight: bold;
		}
	}

	.login_button {
		background-color: #018afe;
		width: 100%;
		border-radius: 15rpx;
		font-size: 28rpx;
		padding: 30rpx;
		box-sizing: border-box;
		color: #fff;
		text-align: center;
		margin-top: 45rpx;
		transition: all 0.5s;
	}

	.login_button:active {
		opacity: 0.8;
	}
</style>